<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateAdPosition extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('ad_position', function (Blueprint $table) {
            $table->id();
            $table->string("name")->index()->comment("广告位置");
            $table->integer("ad_width")->comment("广告位的宽")->nullable();
            $table->integer("ad_height")->comment("广告高度")->nullable();
            $table->string("desc")->comment("广告位描述")->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('ad_position');
    }
}
